package com.prs.crm.vo.flow;

import java.util.ArrayList;
import java.util.Collection;

public  class FlowNode implements  java.io.Serializable{

	private static final long serialVersionUID = 1L;
	
	private Integer id;
	
	private String name;
	
	private Collection<FlowNode> nextNodes;
	
	private float xCoordinate;
	
	private float yCoordinate;
	

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setNextNodes(Collection<FlowNode> nextNodes) {
		this.nextNodes = nextNodes;
	}

	public Collection<FlowNode> getNextNodes() {
		return nextNodes;
	}
	
	public void addNextNode(FlowNode node)
	{
		if (nextNodes == null)
		{
			nextNodes = new ArrayList<FlowNode>();
		}
		nextNodes.add(node);
	}

	public void setxCoordinate(float xCoordinate) {
		this.xCoordinate = xCoordinate;
	}

	public float getxCoordinate() {
		return xCoordinate;
	}

	public void setyCoordinate(float yCoordinate) {
		this.yCoordinate = yCoordinate;
	}

	public float getyCoordinate() {
		return yCoordinate;
	}
	
	

	
}
